//请求工具参考https://ext.dcloud.net.cn/plugin?id=392
const { http } = uni.$u

//创建拼车订单
export const createOrder = data => http.post('/member/mp/shunfengche-order/create', data)

//查询单个订单
export const queryOrder = params => http.get('/member/mp/shunfengche-order/get', { params })
//取消单个订单
export const cancelOrder = params => http.get('/member/mp/shunfengche-order/cancel', { params })
//接单
export const receiveOrder = params => http.get('/member/mp/shunfengche-order/receive', { params })

//获得订单分页
export const pincheOrderPage = params => http.get('/member/mp/shunfengche-order/page', { params })

//评价订单
export const evaluateOrder = data => http.post('/member/mp-shunfengche-order-evaluate/create', data)
